#include<iostream>
using namespace std;
int arr[105][105];
int n, m, k;
int main()
{
	cin >> n >> m >> k;
	for (int i = 0; i < m; i++) {
		int  x, y;
		cin >> x >> y;
		for (int j = x - 2; j <= x + 2; j++) {
			if (j >= 0) {
				arr[j][y] = 1;
			}
		}
		for (int j = y - 2; j <= y + 2; j++) {
			if (j >= 0) {
				arr[x][j] = 1;
			}
		}
		arr[x - 1][y - 1] = 1;
		arr[x - 1][y + 1] = 1;
		arr[x + 1][y - 1] = 1;
		arr[x + 1][y + 1] = 1;
	}
	for (int i = 0; i < k; i++) {
		int x, y;
		cin >> x >> y;
		for (int j = x - 2; j <= x + 2; j++) {
			for (int k = y - 2; k <= y + 2; k++) {
				if (j >= 0 && k >= 0) {
					arr[j][k] = 1;
				}
			}
		}
	}
	int count = 0;
	for (int i = 1; i < n + 1; i++) {
		for (int j = 1; j < n + 1; j++) {
			if (arr[i][j] == 0) {
				count++;
			}
		}
	}
	cout << count << endl;
	return 0;
}